import request from '@/utils/request'

export function listMall() {
  return request({
    url: '/config/mall',
    method: 'get'
  })
}

export function updateMall(data) {
  return request({
    url: '/config/mall',
    method: 'post',
    data
  })
}

export function listExpress() {
  return request({
    url: '/config/express',
    method: 'get'
  })
}

export function updateExpress(data) {
  return request({
    url: '/config/express',
    method: 'post',
    data
  })
}

export function listOrder() {
  return request({
    url: '/config/order',
    method: 'get'
  })
}

export function updateOrder(data) {
  return request({
    url: '/config/order',
    method: 'post',
    data
  })
}

export function listWx() {
  return request({
    url: '/config/wx',
    method: 'get'
  })
}

export function updateWx(data) {
  return request({
    url: '/config/wx',
    method: 'post',
    data
  })
}

export function footList(data) {
  return request({
    url: '/xconfig/queryConfigList',
    method: 'get',
    data
  })
}

export function footEdit(id) {
  return request({
    url: '/xconfig/queryConfigById',
    method: 'get',
    params: { id }
  })
}

export function editfoot(data) {
  return request({
    url: '/xconfig/updateLitemallConfig',
    method: 'post',
    data
  })
}
// 视频列表
export function queryVideoList(query) {
  return request({
    url: '/videoConfig/queryVideoList',
    method: 'get',
    params: query
  })
}
// 添加视频
export function addVideo(data) {
  return request({
    url: '/videoConfig/addVideo',
    method: 'post',
    data
  })
}
// 编辑视频
export function updateBanner(data) {
  return request({
    url: '/videoConfig/updateVideo',
    method: 'post',
    data
  })
}
// 删除视频
export function deleteBannerById(query) {
  return request({
    url: '/videoConfig/deleteVideo',
    method: 'get',
    params:query
  })
}